import {legacy_createStore,applyMiddleware} from "redux"
import thunk from "redux-thunk";
import logger from "redux-logger";

const initialState = {

}

const reduce=(state = initialState, { type, payload }:any) => {
    switch (type) {

    case "typeName":
        return { ...state, ...payload }

    default:
        return state
    }
}
const store=legacy_createStore(reduce,applyMiddleware(thunk,logger))
export default store